import http from '@/utils/http'

export const departmentListApi = () => {
	return http.get('/dep/all')
}
/**
 * 问诊订单预付
 */
export const preOrderApi = (options) => {
	return http.get('/patient/consult/order/pre', {
		params: { ...options },
	})
}
/**
 * 问诊订单详情
 */
export const patientDetailApi = (orderId) => {
	return http.get('/patient/consult/order/detail', { params: { orderId } })
}
/**
 * 创建问诊订单
 */
export const createOrderApi = (data) => {
	return http.post('/patient/consult/order', data)
}
/**
 * 医生问诊列表
 */
export const orderListApi = (data) => {
  return http.get('/patient/consult/order/list', { params: data })
}